#include <iostream>
#include <stdlib.h>
#include <sys/uio.h>
using namespace std; 

int main(){
	char buf[10];
	char buf1[10]; 
	struct iovec iov[2]; 
	iov[0].iov_base = buf; 
	iov[1].iov_base = buf1;
	iov[0].iov_len = 10;
	iov[1].iov_len = 10; 
	
	readv(0,iov,2);
	cout << sizeof(buf) << endl;
	cout << buf1 << endl;

}
